package edu.ntu.im.p2ptrade.entity;

import java.util.Date;

import edu.ntu.im.p2ptrade.msg.GenericDialog;

public class Dialog {
	private String from;

	private String content;

	private String to;

	private Date date;

	public Dialog() {

	}

	public Dialog(GenericDialog gDialog, String peer) {
		this.from = gDialog.getMe();
		this.content = gDialog.getContent();
		this.date = new Date();
		this.to = peer;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String issuer) {
		this.from = issuer;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

}
